package testes;

import java.awt.Image;
import visualcbir.util.VSUtils;

/**
 *
 * @author sheila
 */
public class Scale2 {
    public Image setImageScaleFactor(Image poBufferedImage, double dScaleFactor){
         System.out.println("dScaleFactor->"+dScaleFactor);
         if(dScaleFactor<0.2) dScaleFactor=0.2;
         return poBufferedImage.getScaledInstance( (int)(poBufferedImage.getWidth(null)*dScaleFactor), (int)(poBufferedImage.getWidth(null)*dScaleFactor), Image.SCALE_FAST);
     }

    public static void main(int args[]){
        Image img=VSUtils.readImageIO("/home/sheila/images_databases/corel/A0004/A0000.ppm");
        //this.setS
    }

}
